import React from 'react'
import ReactDOM from 'react-dom/client'
import { enableMapSet } from 'immer'
import App from './App'
import './index.css'

// 启用 Immer MapSet 插件
enableMapSet()

// 确保DOM已加载
document.addEventListener('DOMContentLoaded', () => {
  const root = ReactDOM.createRoot(
    document.getElementById('root') as HTMLElement
  )
  
  root.render(
    <React.StrictMode>
      <App />
    </React.StrictMode>
  )
})
